﻿@using Web.Models;

@{ UserRepresentation userrep = (UserRepresentation)Session["userrep"]; }

@if(Request.IsAuthenticated) {
    
  
    @:Welcome <strong>@User.Identity.Name</strong> 
    if(userrep != null){ 
        @: last seen: @userrep.GetLatestLogin().ToString() number of logins: @userrep.GetNumberOfLoginsInTheLast30Days().ToString()
        }
        @:[ @Html.ActionLink("Log Off", "LogOff", "Account") ]
}
else {
    @:[ @Html.ActionLink("Log On", "LogOn", "Account") ]
}
